﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="VISS.Web.BackEnd.Modules.General.LoginPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>NCT - VISS Admim Tools</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="height: 150px;">
    </div>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr>
            <td valign="middle" align="center">
                <asp:Login ID="LoginBox" runat="server" FailureText="Đăng nhập thất bại" OnAuthenticate="LoginBox_Authenticate"
                    DestinationPageUrl="~/trang_chu">
                    <LayoutTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 500px; height: 300px;
                            border: 2px solid rgb(0, 68, 221);">
                            <tr style="height: 40px;">
                                <td align="center" style="font-size: 26px; height: 20px; border-bottom: 2px solid rgb(0, 68, 221);">
                                    VISS - Admin Tools
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <table border="0" style="width: 300px;">
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server" style="width: 180px;"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="LoginBoxValidationGroup">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" style="width: 180px;"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="LoginBoxValidationGroup">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="color: red; font-weight:bold;" colspan="2">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập"
                                                        ValidationGroup="LoginBoxValidationGroup" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
